/* 
 * File:   server.h
 * Author: samuel
 *
 * Created on 21 mars 2012, 13:50
 */

#ifndef SERVER_H
#define	SERVER_H

#ifdef	__cplusplus
extern "C"
{
#endif
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h> 
#include <poll.h>

#define MAXLINE         4096
#define LISTENQ         10
#define SA      struct sockaddr
#define PORT            1111
#define SECOND          1000
#define TIMEOUT         (30 * SECOND)



    void run();
    int myListen();


#ifdef	__cplusplus
}
#endif

#endif	/* SERVER_H */

